﻿using System;

namespace SharpOSCAR.Base
{
    /// <summary>
    /// Provides the contract for objects that contain TLVs
    /// </summary>
    public interface ITlvContainer
    {
        /// <summary>
        /// Adds a Tlv to the container
        /// </summary>
        /// <param name="value">Tlv to add</param>
        void AddTlv(Tlv value);

        /// <summary>
        /// Removes a Tlv from the container
        /// </summary>
        /// <param name="value">Tlv to remove</param>
        void RemoveTlv(Tlv value);

        /// <summary>
        /// Returns the number of Tlvs in the container
        /// </summary>
        int Count
        {
            get;
        }
    }
}
